<? 
define('ROOT', $_SERVER['DOCUMENT_ROOT']);
require_once(ROOT.'/public/global.php');
require_once(ROOT.'/lang/'.$LN.'.php');
$code = $_GET['code'];
$pages = array('basic');
if (!in_array($code, $pages))
	$code = 'basic';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?=$MsgJs[$code.'DTree'] ?></title>
<meta name="description" content="<?=$MsgJs['dtree'] ?>" />
<meta name="keywords" content="Tree Dynatree JQuery Plugin Javascript 树形 插件 " />
<? require_once(ROOT.'/public/ref.php'); ?>
<link href="/css/default/ui.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/css/default/dynatree/ui.css" />
<script type="text/javascript" src="/js/jquery/ui.js"></script>
<script type="text/javascript" src='/js/jquery/dynatree.min.js'></script>
<script type="text/javascript" src="/js/mac/contextMenu.min.js"></script>
<link type="text/css" rel="stylesheet" href="/css/default/mac/menu/menu.min.css" />
<script type="text/javascript" src="/js/mac/menu.min.js"></script>
<script type="text/javascript" src="/js/mac/dtree.min.js"></script>
<!-- <script type="text/javascript" src="/js/mac/dtree.min.js"></script> -->
<script type="text/javascript" src="/js/mac/webapp.min.js"></script>
<script type="text/javascript">
$(function(){
	$('#nav_jump').change(function(){
		location = './' + this.value + '.html';
	}).val('<?=$code?>');
	$('.demoSource').val($('#demo').html());
});
</script>
</head>
<? require_once(ROOT.'/public/head.php'); ?>
<body>
<div id="nav">
	<div id="nav_path">
		<a href="<?=$LP?>">Home</a>
		&gt;
		<a href="<?=$LP?>mac/js/dtree">JQuery MagicDTree</a>
	</div>
	<div id="nav_back">
		<a href="<?=$LP?>mac/js/dtree/doc" target="_blank"><?=$Msg['app']['doc']?></a>
		|
		<a href="javascript:history.back()"><?=$Msg['back']?></a>
		|
		<a href="/mac/js/dl/<?=$code ?>.html"><?=$Msg['download']?></a>
		&nbsp;&nbsp;
	</div>
	<div class="clear"></div>
</div>
<div class="demoInfo">
	<h2 class="demoTitle">MagicDTree Demo</h2>
	<p>JQuery Dynatree plugin is updated to 1.2.5</p>
</div>
<div id="demo" class="demoPanel" style="overflow: auto"><? include_once($code.'.php'); ?></div>
<textarea class="demoSource" wrap="off"></textarea>
<iframe src="/mac/js/related.php" class="related"></iframe>
<? require_once(ROOT.'/public/foot.html'); ?>
</body>
</html>
<?
$fp = ROOT.$LP.'/mac/js/dtree/';
if($code=='basic')
	output(basename(__FILE__), $fp.'index.html');
output(basename(__FILE__), $fp.$code.'.html');
?>